package com.sunspring.jbug.service;

import com.sunspring.jbug.bean.OperationLog;
import com.sunspring.jbug.mapper.OperationLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Author: wulei
 * @Date: 2019/3/7
 */
@Service
public class OperationLogService {

    @Autowired
    private OperationLogMapper olm;

    /**
     * 新增操作记录
     * @param operationLog OperationLog
     */
    @Async
    public void addLog(OperationLog operationLog) {
        olm.add(operationLog);
    }
}
